<?php

namespace App\Exceptions;

use Exception;
use Illuminate\Http\Request;
use Throwable;

class CoopException extends Exception
{
    public function __construct(string $message = "", int $code = 200, Throwable $previous = null) {
        parent::__construct($message, $code, $previous);
    }
    public function render(Request $request) {


        return response()->json([
            "code" => $this->code,
            "msg" => $this->message,
            "data" => ''
        ]);



    }
}
